--- 战斗主类
---
--- @class DataManagerTest
DataManagerTest = ClientFight.CreateClass("DataManagerTest", ClientFight.AbstractTemplateManager)
local this = DataManagerTest

--- @public
--- @return DataManagerTest


function DataManagerTest:getModuleName()
    return "配置表";
end
function DataManagerTest:setFormationInfo(info)
    for i = 1, 2 do
        for idx, hero in pairs(info[tostring(i -1)]) do
            local index = idx + 1;
            if table.getn(hero) > 0 then
                local attribute = {};
                for j = 1, 11 do
                    if  this.t_gladiatorteamBeanList[tostring(i )]["f_GladiatorPara" .. index] == "" then
                        this.t_gladiatorteamBeanList[tostring(i)]["f_GladiatorPara" .. index] = {};
                    end
                    this.t_gladiatorteamBeanList[tostring(i )]["f_GladiatorPara" .. index][j] = hero[tostring(j)];
                end
            else
                this.t_gladiatorteamBeanList[tostring(i)]["f_GladiatorPara" .. index] = "";
            end
        end
    end
end
function DataManagerTest:initFormationInfo(tab)
    local list = {}
    for i, v in pairs(tab) do
        if list[i] == nil then
            list[i] = {}
        end
        local team = list[i];
        team.f_SeqID = tab[i].f_SeqID;
        team.f_GladiatorTeamID = tab[i].f_GladiatorTeamID;
        team.f_SupportSkillId = tab[i].f_SupportSkillId;
        team.f_GladiatorPara1 = tab[i].f_GladiatorPara1;
        team.f_GladiatorPara2 = tab[i].f_GladiatorPara2;
        team.f_GladiatorPara3 = tab[i].f_GladiatorPara3;
        team.f_GladiatorPara4 = tab[i].f_GladiatorPara4;
        team.f_GladiatorPara5 = tab[i].f_GladiatorPara5;
        team.f_GladiatorPara6 = tab[i].f_GladiatorPara6;

    end
    return list;
end
this.t_herorankupcoBeanMap = G.dataTable["t_herorankupco"];
this.t_levelupattributeBeanMap = G.dataTable["t_levelupattribute"];
this.t_monstertempletBeanMap = G.dataTable["t_monstertemplet"];
this.t_gladiatorteamBeanList = this:initFormationInfo(G.dataTable["t_gladiatorteam"]);